package com.baic.ibase.service.permissions;

import com.baic.ibase.models.dao.RolesPermissions;
import com.baic.ibase.models.req.common.ApiResponse;
import com.baic.ibase.models.req.common.PageResponse;
import com.baic.ibase.models.req.roles.CreateRolesPermissionsReq;
import com.baic.ibase.models.req.roles.QueryRolesPermissionsPage;
import com.baic.ibase.models.resp.QueryRolesPermissionsResp;
import com.baomidou.mybatisplus.extension.service.IService;


public interface RolesPermissionService extends IService<RolesPermissions> {
    /**
     * 创建角色权限
     * @param req
     * @return
     */
    ApiResponse<Integer> createRolesPermissions(CreateRolesPermissionsReq req);


    /**
     * 获取角色权限
     * @param req
     * @return
     */
    ApiResponse<PageResponse<QueryRolesPermissionsResp>> listRolesPermissions(QueryRolesPermissionsPage req);

}
